package com.ruoyi.combat.service.useralignment.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.combat.mapper.useralignment.CombatRelationZhMapper;
import com.ruoyi.combat.domain.useralignment.CombatRelationZh;
import com.ruoyi.combat.service.useralignment.ICombatRelationZhService;

/**
 * 知乎用户社交关系
Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
@Service
public class CombatRelationZhServiceImpl implements ICombatRelationZhService 
{
    @Autowired
    private CombatRelationZhMapper combatRelationZhMapper;

    /**
     * 查询知乎用户社交关系

     * 
     * @param id 知乎用户社交关系
主键
     * @return 知乎用户社交关系

     */
    @Override
    public CombatRelationZh selectCombatRelationZhById(Long id)
    {
        return combatRelationZhMapper.selectCombatRelationZhById(id);
    }

    /**
     * 查询知乎用户社交关系
列表
     * 
     * @param combatRelationZh 知乎用户社交关系

     * @return 知乎用户社交关系

     */
    @Override
    public List<CombatRelationZh> selectCombatRelationZhList(CombatRelationZh combatRelationZh)
    {
        return combatRelationZhMapper.selectCombatRelationZhList(combatRelationZh);
    }

    @Override
    public List<CombatRelationZh> selectRelationByUserId(String userId) {
        return combatRelationZhMapper.selectRelationByUserId(userId);
    }

    /**
     * 新增知乎用户社交关系

     * 
     * @param combatRelationZh 知乎用户社交关系

     * @return 结果
     */
    @Override
    public int insertCombatRelationZh(CombatRelationZh combatRelationZh)
    {
        return combatRelationZhMapper.insertCombatRelationZh(combatRelationZh);
    }

    /**
     * 修改知乎用户社交关系

     * 
     * @param combatRelationZh 知乎用户社交关系

     * @return 结果
     */
    @Override
    public int updateCombatRelationZh(CombatRelationZh combatRelationZh)
    {
        return combatRelationZhMapper.updateCombatRelationZh(combatRelationZh);
    }

    /**
     * 批量删除知乎用户社交关系

     * 
     * @param ids 需要删除的知乎用户社交关系
主键
     * @return 结果
     */
    @Override
    public int deleteCombatRelationZhByIds(Long[] ids)
    {
        return combatRelationZhMapper.deleteCombatRelationZhByIds(ids);
    }

    /**
     * 删除知乎用户社交关系
信息
     * 
     * @param id 知乎用户社交关系
主键
     * @return 结果
     */
    @Override
    public int deleteCombatRelationZhById(Long id)
    {
        return combatRelationZhMapper.deleteCombatRelationZhById(id);
    }
}
